package 类和对象课堂练习;

public class Zuoye04081 {
    private String zhongliang,wuxian,color;

    public Zuoye04081(String zhongliang, String wuxian, String color) {
        this.zhongliang = zhongliang;
        this.wuxian = wuxian;
        this.color = color;
    }
    public void jieshao(){
        System.out.println("使用重"+zhongliang+"千克，无线范围为"+wuxian+"米的"+color+"遥控器");
    }
    public void switchs(){
        jieshao();
        System.out.println("换台");
    }
    public void guanbi(){
        jieshao();
        System.out.println("关机");
    }
    public void kaiji(){
        jieshao();
        System.out.println("开机");
    }

    public String getZhongliang() {
        return zhongliang;
    }

    public void setZhongliang(String zhongliang) {
        this.zhongliang = zhongliang;
    }

    public String getWuxian() {
        return wuxian;
    }

    public void setWuxian(String wuxian) {
        this.wuxian = wuxian;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
